#include<iostream>
#include<gtest/gtest.h>
/*
    断言宏
        ASSERT_ 断言失败退出
        EXPECT_ 断言失败继续运行
    断言宏只能在单元测试宏函数中使用
*/
TEST(test,great_than)
{
    int age = 20;
    ASSERT_GT(age,18);
    printf("OK!\n");
}
TEST(test,less_than)
{
    int age = 20;
    ASSERT_LT(age,18);
    printf("OK!\n");
}
int main(int argc,char*argv[])
{
    testing::InitGoogleTest(&argc,argv);
    int ret = RUN_ALL_TESTS();
    (void)ret;
    return 0;

}